#include "include/dwg.h"
#include "include/dwg_api.h"
#include <iostream>

int main(int argc, char **argv)
{

    char dwgfile[] = "d:\\learnCAD.dwg";
    Dwg_Data* dwg_data;
    printf("Reading DWG file %s\n", dwgfile);
    int error = dwg_read_file(dwgfile, dwg_data);
    if (error >= DWG_ERR_CRITICAL)
    {
       fprintf(stderr, "READ ERROR 0x%x\n", error);
        return EXIT_FAILURE;
    }

    Dwg_Version_Type version = dwg_data->header.version;



    dwg_free(dwg_data);
    

}